<?php

class IndexController extends Zend_Controller_Action {

    public function indexAction()
    {


    }

    public function registerUserAction()
    {
        $this->view->form = $form = new Application_Form_Users();

        if ($this->_request->isPost()) {
            if ($form->isValid($this->_request->getPost())){
                $userTable = new Application_Model_DbTable_Students();
                $user = $userTable->createRow();

                $user->setFromArray($this->_request->getPost());
            }
        }
    }
}